import { validatePhone, validatePassword, required } from "./validate";

export const formRules = {
  username: [required],
  password: {
    required: true,
    message: "请输入用戶密碼",
    trigger: ["blur", "change"],
  },
  confirm: [required],
  mobile: [
    required,
    {
      validator: validatePhone,
      trigger: "blur",
    },
  ],
  password: [
    required,
    {
      validator: validatePassword,
      trigger: "blur",
    },
  ],
  Code: {
    required: true,
    message: "請輸入6位驗證碼",
    trigger: ["blur", "change"],
  },
};
